package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;
import java.util.Date;

/**
 * 计划表 t_task_plan
 * 
 * @author ruoyi
 * @date 2019-02-20
 */
public class TTaskPlan extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键ID */
	private String id;
	/** 计划编号 */
	private String plancode;
	/** 产品ID */
	private String productid;
	/** 产品图号 */
	private String graph;
	/** 托盘条码 */
	private String trayid;
	/** 工装条码 */
	private String toolingid;
	/** 创建时间 */
	private Date createtime;
	/** 下发时间 */
	private Date publishtime;
	/** 计划开始时间 */
	private Date begintime;
	/** 计划结束时间 */
	private Date finishtime;
	/** 实际开始时间 */
	private Date factbegintime;
	/** 实际结束时间 */
	private Date factfinishtime;
	/** 计划来源（0：MES；1：新建；2：Excel导入） */
	private String source;
	/** 计划所对应的产品数量 */
	private String quantity;
	/** 创建人 */
	private String username;
	/** 责任单位 */
	private String department;
	/** 计划状态（0：运行中；1：已完成；2：作废；3：挂起；4：未下发；5：等待；6：待激活） */
	private String state;
	/** 计划完成进度（最后完成的工位） */
	private String complete;

	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}
	public void setPlancode(String plancode) 
	{
		this.plancode = plancode;
	}

	public String getPlancode() 
	{
		return plancode;
	}
	public void setProductid(String productid) 
	{
		this.productid = productid;
	}

	public String getProductid() 
	{
		return productid;
	}
	public void setGraph(String graph) 
	{
		this.graph = graph;
	}

	public String getGraph() 
	{
		return graph;
	}
	public void setTrayid(String trayid) 
	{
		this.trayid = trayid;
	}

	public String getTrayid() 
	{
		return trayid;
	}
	public void setToolingid(String toolingid) 
	{
		this.toolingid = toolingid;
	}

	public String getToolingid() 
	{
		return toolingid;
	}
	public void setCreatetime(Date createtime) 
	{
		this.createtime = createtime;
	}

	public Date getCreatetime() 
	{
		return createtime;
	}
	public void setPublishtime(Date publishtime) 
	{
		this.publishtime = publishtime;
	}

	public Date getPublishtime() 
	{
		return publishtime;
	}
	public void setBegintime(Date begintime) 
	{
		this.begintime = begintime;
	}

	public Date getBegintime() 
	{
		return begintime;
	}
	public void setFinishtime(Date finishtime) 
	{
		this.finishtime = finishtime;
	}

	public Date getFinishtime() 
	{
		return finishtime;
	}
	public void setFactbegintime(Date factbegintime) 
	{
		this.factbegintime = factbegintime;
	}

	public Date getFactbegintime() 
	{
		return factbegintime;
	}
	public void setFactfinishtime(Date factfinishtime) 
	{
		this.factfinishtime = factfinishtime;
	}

	public Date getFactfinishtime() 
	{
		return factfinishtime;
	}
	public void setSource(String source) 
	{
		this.source = source;
	}

	public String getSource() 
	{
		return source;
	}
	public void setQuantity(String quantity) 
	{
		this.quantity = quantity;
	}

	public String getQuantity() 
	{
		return quantity;
	}
	public void setUsername(String username) 
	{
		this.username = username;
	}

	public String getUsername() 
	{
		return username;
	}
	public void setDepartment(String department) 
	{
		this.department = department;
	}

	public String getDepartment() 
	{
		return department;
	}
	public void setState(String state) 
	{
		this.state = state;
	}

	public String getState() 
	{
		return state;
	}
	public void setComplete(String complete) 
	{
		this.complete = complete;
	}

	public String getComplete() 
	{
		return complete;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("plancode", getPlancode())
            .append("productid", getProductid())
            .append("graph", getGraph())
            .append("trayid", getTrayid())
            .append("toolingid", getToolingid())
            .append("createtime", getCreatetime())
            .append("publishtime", getPublishtime())
            .append("begintime", getBegintime())
            .append("finishtime", getFinishtime())
            .append("factbegintime", getFactbegintime())
            .append("factfinishtime", getFactfinishtime())
            .append("source", getSource())
            .append("quantity", getQuantity())
            .append("username", getUsername())
            .append("department", getDepartment())
            .append("state", getState())
            .append("complete", getComplete())
            .toString();
    }
}
